package com.longrise.co.ui.carlife.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.longrise.co.R;
import com.longrise.co.ui.carlife.model.IllegalInquiriesBean;
import com.ly.common.commonutils.TimeUtil;

import java.util.List;


/**
 * Created by admin on 2017/2/4.
 */

public class IllegalInquiriesAdapter extends BaseQuickAdapter<IllegalInquiriesBean.ListBean> {


    public IllegalInquiriesAdapter(List<IllegalInquiriesBean.ListBean> listData) {
        super(R.layout.item_peccancy, listData);

    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, IllegalInquiriesBean.ListBean bean) {
        baseViewHolder.setText(R.id.peccancy_tv_time, TimeUtil.getDateYMD(bean.getTime()))
                      .setText(R.id.peccancy_tv_add, bean.getAddress())
                      .setText(R.id.peccancy_tv_score, bean.getDegree() + "分")
                      .setText(R.id.peccancy_tv_pay, bean.getMoney() + "元")
                      .setText(R.id.peccancy_tv_info, bean.getReason())
                      .setText(R.id.peccancy_tv_police, bean.getDepartment());
    }
}
